package com.hzh.flink.sink

import org.apache.flink.streaming.api.scala._

object Demo2Print {
  def main(args: Array[String]): Unit = {
    val env: StreamExecutionEnvironment = StreamExecutionEnvironment.getExecutionEnvironment

    val linesDS: DataStream[String] = env.socketTextStream("master", 8888)

    linesDS.print()

    env.execute()
  }
}
